<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!--理想视口也一定要写  -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘首页</title>
    <!-- 引入mui的框架，是最接近原生Api的高性能前端框架,一般做项目先引入没有压缩过的，我们需要查看 -->
    <link rel="stylesheet" href="assets/mui/css/mui.css">
    <!--另一个字体图标 -->
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.css">
    <!-- 一样的代码写一起--共用代码 -->
   <!--  <link rel="stylesheet" href="css/common.css"> -->
    <!--我们自己的css  -->
    <link rel="stylesheet" href="css/product.css">

</head>

<body>
    <!-- 头部 ,因为这里引入了第三方的框架，所以都需要写前缀，以避免跟框架里面的命名冲突-->
    <header class="lt_header">
        <h4 class="lt_title">
            商品详情
            <a class="lt_h_right" href="/mobile/index.html">
                <span class="fa fa-home"></span>
           </a>
            <a class="lt_h_left" href="./searchList.html">
                <span class="fa fa-arrow-left"></span>
           </a>
        </h4>
    </header>
    <!-- 容器 -->
    <div class="lt_container">
        <!-- 有下拉刷新效果 -->
        <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll">
                <!-- 轮播图 -->
               <!--   <div class="mui-slider">
                    <div class="mui-slider-group mui-slider-loop">
                     
                        <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="./images/product.jpg" /></a></div>
                        <div class="mui-slider-item"><a href="#"><img src="./images/detail.jpg" /></a></div>
                        <div class="mui-slider-item"><a href="#"><img src="./images/product.jpg" /></a></div>
                      
                        <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="./images/detail.jpg" /></a></div>
                    </div>
                    
                    <div class="mui-slider-indicator">
                        <div class="mui-indicator mui-active"></div>
                        <div class="mui-indicator"></div>
                    </div>
                </div>  -->
               <!--  <div class="lt_font_s">
                     匡威三星标1970s converse复刻 142334c 144757c三星标黑色高帮
                </div> -->
                    <!-- <div class="lt_price_s">
                        价格：
                        <span class="new_price">￥500</span>
                        <span class="old_price">￥888.1</span>
                    </div> -->
              <!--       <div class="lt_size_S">
                        尺码：
                        <span>41</span>
                        <span>42</span>
                        <span>43</span>
                        <span>44</span>
                        <span>45</span>
                        <span>46</span>
                        <span>47</span>
                        <span>48</span>
                        <span>49</span>
                        <span>50</span>
                        <span>51</span>
                        <span>52</span>
                        <span>53</span>
                    </div> -->
              <!--       <div class="lt_inventory">
                        数量
                        <div class="mui-numbox">
                           
                            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                            <input class="mui-numbox-input" type="number" />
                            
                            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
                        </div>
                        剩余:20件
                    </div> -->
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="lt_foorter">
        <a class="lt_ft_left" href="javascript:;">
            <span class="fa fa-cart-plus"></span>
        </a>
       
       <div class="lt_ft_but mui-clearfix">
            <button type="button" class="mui-btn addCartBtn mui-btn-danger mui-pull-left">加入购物车</button>
            <button type="button" class="mui-btn buyNowBtn mui-btn-warning mui-pull-right">立即购买</button>
       </div>
       
    </div>

  
        
</body>

</html>
<!-- mui的框架 -->
<script src="assets/mui/js/mui.js"></script>
<!-- 相当于jq的，写jq用的,共用的 ，到时还需要引入单个的-->
<script src="assets/zepto/zepto.min.js"></script>
<!-- 公用jq代码 -->
<script src="js/common.js"></script>
<!-- 引入模板 -->
<script src="assets/artTemplate/template.js"></script>
<!-- 写模板 -->
<script type="text/html" id="lt_tl">
     <!-- 轮播图 -->
                <div class="mui-slider">
                    <div class="mui-slider-group mui-slider-loop">
                        <!--支持循环，需要重复图片节点-->
                        <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
                        {{each pic as itemIndex}}
                         <div class="mui-slider-item"><a href="#"><img src="{{itemIndex.picAddr}}" /></a></div>
                        {{/each}}                     
                        <!--支持循环，需要重复图片节点-->
                        <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}" /></a></div>
                    </div>
                    <!--索引器  -->
                    <div class="mui-slider-indicator">
                        {{each pic as liitem index}}
                        {{if index ==0}}
                        <div class="mui-indicator mui-active"></div>
                        {{/if}}
                        {{if index !=0}}
                        <div class="mui-indicator"></div>
                        {{/if}}
                        {{/each}}
                    </div>
                </div>
                <div class="lt_font_s">
                    {{proName}}
                </div>
                    <div class="lt_price_s">
                        价格：
                        <span class="new_price">￥{{price}}</span>
                        <span class="old_price">￥{{oldPrice}}</span>
                    </div>
                    <div class="lt_size_S">
                        尺码：
                       {{each sizeArr as value}}
                        <span>{{value}}</span>
                        {{/each}}
                    </div>
                    <div class="lt_inventory">
                        数量
                        <div class="mui-numbox" data-numbox-min="0" data-numbox-max="{{num}}">
                            <!-- "-"按钮，点击可减小当前数值 -->
                            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                            <input class="mui-numbox-input" type="number" />
                            <!-- "+"按钮，点击可增大当前数值 -->
                            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
                        </div>
                        剩余:20件
                    </div>
</script>
<!-- 自己的 -->
<script src="js/product.js"></script>